# -*- encoding:utf-8 -*-
from django.contrib import admin
from article.models import Author ,Tag,Classification,Article
# Register your models here.


admin.site.register(Author)
admin.site.register(Tag)
admin.site.register(Classification)


class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title', 'classification', 'author', 'publish_time')
    search_fields = ('title',)


admin.site.register(Article,ArticleAdmin)
"""
class ArticleAdmin(admin.ModelAdmin):
    list_display = ['tags']
    search_fields = ['title']

admin.site.register(Article, ArticleAdmin)
"""
